function showNewMsg(){
	var url="/tools/ajax.aspx?type=getusernewsms";
	var xmlHttp=GetXmlHttpObject();
	xmlHttp.open("GET",encodeURI(url),true);
	xmlHttp.setRequestHeader("If-Modified-Since", "0");
	xmlHttp.onreadystatechange=function(){
		if(xmlHttp.readyState==4){
				if(xmlHttp.status==200){
					getId("pupmsg").innerHTML=xmlHttp.responseText;
					if(xmlHttp.responseText!="0"){
					    getId("pupmsgbox").style.display = "block";
					}
					else{
					    getId("pupmsgbox").style.display = "none";
					}
					setTimeout(showNewMsg,60*1000);
				}
			}
	};
	xmlHttp.send(null);
}
function GetXmlHttpObject(){
  var xmlHttp=null;
  try{
	// Firefox, Opera 8.0+, Safari
	xmlHttp=new XMLHttpRequest();
	}
  catch (e){
	// Internet Explorer
	try{
	  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
	  }
	catch (e){
	  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	}
  return xmlHttp;
}
var tmpWindowLoad100602_1=window.onload
window.onload=function(){
    if(typeof(tmpWindowLoad100602_1)=="function") tmpWindowLoad100602_1();
   showNewMsg();
}